import request from '@/utils/request'

// 查询单证货物信息列表
export function listBillList(query) {
  return request({
    url: '/kmwlpts/billList/list',
    method: 'get',
    params: query
  })
}

// 查询单证货物信息详细
export function getBillList(id) {
  return request({
    url: '/kmwlpts/billList/' + id,
    method: 'get'
  })
}

// 新增单证货物信息
export function addBillList(data) {
  return request({
    url: '/kmwlpts/billList',
    method: 'post',
    data: data
  })
}

// 修改单证货物信息
export function updateBillList(data) {
  return request({
    url: '/kmwlpts/billList',
    method: 'put',
    data: data
  })
}

// 删除单证货物信息
export function delBillList(id) {
  return request({
    url: '/kmwlpts/billList/' + id,
    method: 'delete'
  })
}

// 导出单证货物信息
export function exportBillList(query) {
  return request({
    url: '/kmwlpts/billList/export',
    method: 'get',
    params: query
  })
}